import api from "/api/api.js"


//预约挂号
export const apiAdd = (data) => {
	return api({
		url: `/reservation/add`,
		method: 'POST',
		data
	})
}

//查询预约记录
export const apiGetList = (data) => {
	return api({
		url: `/reservation/list`,
		method: 'GET',
		data
	})
}

// 根据预约id获取预约详情
export const apiGetInfo = (id) => {
	return api({
		url: `/reservation/details/${id}`,
		method: 'GET'
	})
}

//根据预约id获取就诊信息
export const apiGetDiagnosis = (reservationId) => {
	return api({
		url: `/diagnosis/details/${reservationId}`,
		method: 'GET'
	})
}

//确认支付
export const apiPayment = (id) => {
	return api({
		url: `/diagnosis/confirmPay/${id}`,
		method: 'GET'
	})
}


